import Vue from 'vue'
import Router from 'vue-router'
// const Index = resolve => require(['pages/Index'], resolve)

const Index = require('pages/Index')
const ViewPK = resolve => require(['pages/viewPK'], resolve)
const JingYanZhi = require('pages/jingyanzhi')
const Comments = resolve => require(['pages/comments'], resolve)

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/viewpk',
      name: 'ViewPK',
      component: ViewPK
    },
    {
      path: '/jingyanzhi',
      name: 'JingYanZhi',
      component: JingYanZhi
    },
    {
      path: '/comments',
      name: 'Comments',
      component: Comments
    }
  ]
})
